﻿<%@ Page Language="C#" MasterPageFile="~/admin/adminMasterPage.master" AutoEventWireup="true" CodeFile="modifyCategory.aspx.cs" Inherits="admin_category_modifyCategory" Title="无标题页" %>

<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
     <table>
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server" Text="类别中文名："></asp:Label>
                <asp:Label ID="idLabel" runat="server" Visible="false"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="categoryName_cnTextBox" runat="server" Width="431px" 
                    Height="22px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                    ErrorMessage="类别中文名不能为空" ControlToValidate="categoryName_cnTextBox"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label2" runat="server" Text="类别英文名："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="categoryName_enTextBox" runat="server" Width="429px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="categoryName_enTextBox" ErrorMessage="类别英文名不能为空"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
           <td>
               <asp:Label ID="Label3" runat="server" Text="所属类别："></asp:Label>
           </td>
           <td>
               <asp:DropDownList ID="categoryDropdownList" runat="server" 
                   DataSourceID="ObjectDataSource2" DataTextField="categoryName_cn" 
                   DataValueField="categoryId" Height="16px" AppendDataBoundItems="True">
                   <asp:ListItem Selected="True" Value="-1">请选择</asp:ListItem>
               </asp:DropDownList>
               <asp:Label ID="Label4" runat="server" Text="若添加大类请留空此项"></asp:Label>
               <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
                   SelectMethod="getBigCategory" TypeName="DB"></asp:ObjectDataSource>
           </td> 
        </tr>
        <tr>
            <td>
                <asp:Button ID="Button1" runat="server" Text="取消" CssClass="button" BorderColor="Transparent" BorderStyle="None"/>
            </td>
            <td>
                <asp:Button ID="saveButton" runat="server" Text="保存" 
                    onclick="saveButton_Click" CssClass="button" BorderColor="Transparent" BorderStyle="None"/>
            </td>
        </tr>
    </table>
</asp:Content>

